package com.zkthink.ceres.msgs.config;

import io.swagger.annotations.ApiModel;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * FileName: PushConfig
 * Author:   Pepis
 * Date:   2020  2020/8/31 10:41
 * Description:  推送配置
 **/
@Configuration
@Data
public class PushConfig {
    @Value("${ailMobilePush.accessKeyId:}")
    private String accessKeyId;

    @Value("${ailMobilePush.accessKeySecret:}")
    private String accessKeySecret;

    @Value("${ailMobilePush.appKey:}")
    private String appKey;



    //通知的提醒方式 "VIBRATE" : 震动 "SOUND" : 声音 "BOTH" : 声音和震动 NONE : 静音
    @Value("${ailMobilePush.androidNotifyType:}")
    private String androidNotifyType;

    //点击通知后动作 "APPLICATION" : 打开应用 "ACTIVITY" : 打开AndroidActivity "URL" : 打开URL "NONE" : 无跳转
    @Value("${ailMobilePush.androidOpenType:}")
    private String androidOpenType;

    //Android收到推送后打开对应的url,仅当AndroidOpenType="URL"有效
    @Value("${ailMobilePush.androidOpenUrl:}")
    private String androidOpenUrl;

    // 设定通知打开的activity，仅当AndroidOpenType="Activity"有效
    @Value("${ailMobilePush.androidActivity:}")
    private String androidActivity;
}
